/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.Fechas;
import DTO.garantiaAutomotrizDTO;
import DAO.garantiasDAO;
import DTO.ComprobanteGeneralDTO;
import DTO.usuarioDTO;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;

/**
 *
 * @author Luis Olave 10
 */
public class EliminacionGarantiaAutomotriz extends javax.swing.JFrame {

    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();
    garantiaAutomotrizDTO garantia;
    String fec = "";
    public EliminacionGarantiaAutomotriz(usuarioDTO user) {
        this.user = user;
        initComponents();
        this.btnEliminarGtiaEliAuto.setVisible(false);
        pnlBuscarPatente.setVisible(false);
        chkFolioEliAuto.setSelected(true);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        lblLogo = new javax.swing.JLabel();
        lblIngresoGaraAuto = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        txtMenuPEliAuto = new javax.swing.JButton();
        pnlBuscarPatente = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        txtPatenteEliAuto = new javax.swing.JTextField();
        btnPatenteEliAuto = new javax.swing.JButton();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        txtNombreEliAuto = new javax.swing.JTextField();
        txtApellMatEliAuto = new javax.swing.JTextField();
        txtApellPatEliAuto = new javax.swing.JTextField();
        txtRutEliAuto = new javax.swing.JTextField();
        pnlBuscarFolio = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        txtFolioEliAuto = new javax.swing.JTextField();
        btnFolioEliAuto = new javax.swing.JButton();
        chkFolioEliAuto = new javax.swing.JCheckBox();
        chkPatenteEliAuto = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionEliAuto = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        pnlCreacionGaraAuto = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        lblSucursal = new javax.swing.JLabel();
        lblDireccion = new javax.swing.JLabel();
        lblMarca = new javax.swing.JLabel();
        lblPatente = new javax.swing.JLabel();
        lblNumChasis = new javax.swing.JLabel();
        FechCreacion = new javax.swing.JLabel();
        FechUltDebito = new javax.swing.JLabel();
        txtDireccionEliAuto = new javax.swing.JTextField();
        txtNumChasisEliAuto = new javax.swing.JTextField();
        txtPatenteElimAuto = new javax.swing.JTextField();
        lblFechUltTasacion = new javax.swing.JLabel();
        lblNumMotor = new javax.swing.JLabel();
        txtNumMotorEliAuto = new javax.swing.JTextField();
        txtAnoEliAuto = new javax.swing.JTextField();
        lblAño = new javax.swing.JLabel();
        lblMoneda = new javax.swing.JLabel();
        txtSucursalEliAuto = new javax.swing.JTextField();
        txtMarcaEliAuto = new javax.swing.JTextField();
        txtFechCreaEliAuto = new javax.swing.JTextField();
        txtFechUltDebEliAuto = new javax.swing.JTextField();
        txtMonedaEliAuto = new javax.swing.JTextField();
        txtFechUltTasEliAuto = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        lblTipoGarantia = new javax.swing.JLabel();
        lblModelo = new javax.swing.JLabel();
        lblNumRegPrenda = new javax.swing.JLabel();
        lblFechExtincion = new javax.swing.JLabel();
        lblFechUltRevaluo = new javax.swing.JLabel();
        FechUltCredito = new javax.swing.JLabel();
        txtNumRegPrendaEliAuto = new javax.swing.JTextField();
        txtTpogtiaEliAuto = new javax.swing.JTextField();
        txtModeloEliAuto = new javax.swing.JTextField();
        txtFechExtEliAuto = new javax.swing.JTextField();
        txtFechUltRevEliAuto = new javax.swing.JTextField();
        txtFechUltCredEliAuto = new javax.swing.JTextField();
        txtFechModEliAuto = new javax.swing.JTextField();
        lblFechModifica = new javax.swing.JLabel();
        jPanel10 = new javax.swing.JPanel();
        lblArchivo = new javax.swing.JLabel();
        btnExaminarEliWarra = new javax.swing.JButton();
        btnMenuPricEliAuto = new javax.swing.JButton();
        btnEliminarGtiaEliAuto = new javax.swing.JButton();
        jPanel11 = new javax.swing.JPanel();
        txtEstadoActualAutomotriz = new javax.swing.JTextField();
        jPanelCambiandoEstadoActual = new javax.swing.JPanel();
        txtCambiandoEstadoActual = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbSalidaPatenteImprimir = new javax.swing.JTable();
        jPanel9 = new javax.swing.JPanel();
        txtBuscarPatenteImprimir = new javax.swing.JTextField();
        btnBuscarPatente = new javax.swing.JButton();
        btnImprimirPatente = new javax.swing.JButton();
        btnMenuPrincipalAutomotriz = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("ELIMINACIÓN GARANTÍA AUTOMOTRIZ");
        setResizable(false);

        lblLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        lblIngresoGaraAuto.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        lblIngresoGaraAuto.setText("ELIMINACIÓN GARANTÍA AUTOMOTRIZ");

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        txtMenuPEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtMenuPEliAuto.setText("MENÚ PRINCIPAL");
        txtMenuPEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtMenuPEliAutoActionPerformed(evt);
            }
        });

        pnlBuscarPatente.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE PATENTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel30.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel30.setText("PATENTE");

        btnPatenteEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnPatenteEliAuto.setText("BUSCAR");
        btnPatenteEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPatenteEliAutoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlBuscarPatenteLayout = new javax.swing.GroupLayout(pnlBuscarPatente);
        pnlBuscarPatente.setLayout(pnlBuscarPatenteLayout);
        pnlBuscarPatenteLayout.setHorizontalGroup(
            pnlBuscarPatenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBuscarPatenteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addGap(18, 18, 18)
                .addGroup(pnlBuscarPatenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtPatenteEliAuto)
                    .addComponent(btnPatenteEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlBuscarPatenteLayout.setVerticalGroup(
            pnlBuscarPatenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlBuscarPatenteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlBuscarPatenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(txtPatenteEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnPatenteEliAuto)
                .addContainerGap())
        );

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel36.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel36.setText("RUT");

        jLabel37.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel37.setText("APELLIDO PATERNO");

        jLabel39.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel39.setText("APELLIDO MATERNO");

        jLabel40.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel40.setText("NOMBRE");

        txtNombreEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreEliAuto.setEnabled(false);

        txtApellMatEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtApellMatEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellMatEliAuto.setEnabled(false);

        txtApellPatEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtApellPatEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellPatEliAuto.setEnabled(false);

        txtRutEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtRutEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutEliAuto.setEnabled(false);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRutEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellPatEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 75, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel39)
                    .addComponent(jLabel40))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtNombreEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellMatEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(196, 196, 196))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(txtRutEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(txtNombreEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(txtApellPatEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39)
                    .addComponent(txtApellMatEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pnlBuscarFolio.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE N° FOLIO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel31.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel31.setText("N° FOLIO");

        btnFolioEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnFolioEliAuto.setText("BUSCAR");
        btnFolioEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFolioEliAutoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlBuscarFolioLayout = new javax.swing.GroupLayout(pnlBuscarFolio);
        pnlBuscarFolio.setLayout(pnlBuscarFolioLayout);
        pnlBuscarFolioLayout.setHorizontalGroup(
            pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBuscarFolioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addGap(18, 18, 18)
                .addGroup(pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtFolioEliAuto)
                    .addComponent(btnFolioEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(47, Short.MAX_VALUE))
        );
        pnlBuscarFolioLayout.setVerticalGroup(
            pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlBuscarFolioLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(txtFolioEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnFolioEliAuto)
                .addContainerGap())
        );

        buttonGroup1.add(chkFolioEliAuto);
        chkFolioEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkFolioEliAuto.setText("BUSCAR POR N° FOLIO");
        chkFolioEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkFolioEliAutoActionPerformed(evt);
            }
        });

        buttonGroup1.add(chkPatenteEliAuto);
        chkPatenteEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkPatenteEliAuto.setText("BUSCAR POR PATENTE");
        chkPatenteEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkPatenteEliAutoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(txtMenuPEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addGap(0, 142, Short.MAX_VALUE)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlBuscarFolio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkFolioEliAuto))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(chkPatenteEliAuto)
                            .addComponent(pnlBuscarPatente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(137, 137, 137)))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(chkPatenteEliAuto)
                        .addGap(18, 18, 18))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(chkFolioEliAuto)
                        .addGap(7, 7, 7)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlBuscarFolio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlBuscarPatente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(29, 29, 29)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(125, 125, 125)
                .addComponent(txtMenuPEliAuto)
                .addContainerGap(39, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel2);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtDescripcionEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionEliAuto.setColumns(20);
        txtDescripcionEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionEliAuto.setRows(5);
        txtDescripcionEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDescripcionEliAuto.setEnabled(false);
        jScrollPane4.setViewportView(txtDescripcionEliAuto);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(lblDescripcion)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(367, 367, 367))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(97, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel3);

        jPanel4.setPreferredSize(new java.awt.Dimension(815, 600));

        pnlCreacionGaraAuto.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ELIMINACIÓN GARANTÍA AUTOMOTRIZ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblSucursal.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblSucursal.setText("SUCURSAL");

        lblDireccion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDireccion.setText("DIRECCIÓN (CRÉDITO)");

        lblMarca.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblMarca.setText("MARCA");

        lblPatente.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblPatente.setText("PATENTE");

        lblNumChasis.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNumChasis.setText("N° CHASIS");

        FechCreacion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        FechCreacion.setText("FECHA CREACIÓN");

        FechUltDebito.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        FechUltDebito.setText("FECHA ÚLT. DEBITO");

        txtDireccionEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtDireccionEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDireccionEliAuto.setEnabled(false);

        txtNumChasisEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtNumChasisEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNumChasisEliAuto.setEnabled(false);

        txtPatenteElimAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtPatenteElimAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtPatenteElimAuto.setEnabled(false);

        lblFechUltTasacion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblFechUltTasacion.setText("FECHA ÚLT. TASACIÓN");

        lblNumMotor.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNumMotor.setText("N° MOTOR");

        txtNumMotorEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtNumMotorEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNumMotorEliAuto.setEnabled(false);

        txtAnoEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtAnoEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtAnoEliAuto.setEnabled(false);

        lblAño.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblAño.setText("AÑO");

        lblMoneda.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblMoneda.setText("MONEDA");

        txtSucursalEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtSucursalEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSucursalEliAuto.setEnabled(false);

        txtMarcaEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtMarcaEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMarcaEliAuto.setEnabled(false);

        txtFechCreaEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechCreaEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechCreaEliAuto.setEnabled(false);

        txtFechUltDebEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltDebEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltDebEliAuto.setEnabled(false);

        txtMonedaEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtMonedaEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMonedaEliAuto.setEnabled(false);

        txtFechUltTasEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltTasEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltTasEliAuto.setEnabled(false);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDireccion)
                    .addComponent(FechUltDebito)
                    .addComponent(FechCreacion)
                    .addComponent(lblNumChasis)
                    .addComponent(lblPatente)
                    .addComponent(lblMarca)
                    .addComponent(lblSucursal)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblFechUltTasacion)
                            .addComponent(lblMoneda)
                            .addComponent(lblAño)
                            .addComponent(lblNumMotor))))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtDireccionEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtSucursalEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtMarcaEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtFechCreaEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtFechUltDebEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtMonedaEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtFechUltTasEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                    .addComponent(txtNumMotorEliAuto)
                    .addComponent(txtAnoEliAuto)
                    .addComponent(txtNumChasisEliAuto)
                    .addComponent(txtPatenteElimAuto))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblSucursal)
                    .addComponent(txtSucursalEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDireccion)
                    .addComponent(txtDireccionEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMarca)
                    .addComponent(txtMarcaEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPatente)
                    .addComponent(txtPatenteElimAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNumChasis)
                    .addComponent(txtNumChasisEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(FechCreacion)
                    .addComponent(txtFechCreaEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(FechUltDebito)
                    .addComponent(txtFechUltDebEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMoneda)
                    .addComponent(txtMonedaEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAño)
                    .addComponent(txtAnoEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNumMotor)
                    .addComponent(txtNumMotorEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFechUltTasacion)
                    .addComponent(txtFechUltTasEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lblTipoGarantia.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblTipoGarantia.setText("TIPO GARANTÍA");

        lblModelo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblModelo.setText("MODELO");

        lblNumRegPrenda.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblNumRegPrenda.setText("N° REG. PRENDA");

        lblFechExtincion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblFechExtincion.setText("FECHA EXTINCIÓN");

        lblFechUltRevaluo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblFechUltRevaluo.setText("FECHA ÚLT. REVALUO");

        FechUltCredito.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        FechUltCredito.setText("FECHA ÚLT. CREDITO");

        txtNumRegPrendaEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtNumRegPrendaEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNumRegPrendaEliAuto.setEnabled(false);

        txtTpogtiaEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtTpogtiaEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTpogtiaEliAuto.setEnabled(false);

        txtModeloEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtModeloEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtModeloEliAuto.setEnabled(false);

        txtFechExtEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechExtEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechExtEliAuto.setEnabled(false);

        txtFechUltRevEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltRevEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltRevEliAuto.setEnabled(false);

        txtFechUltCredEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltCredEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltCredEliAuto.setEnabled(false);

        txtFechModEliAuto.setBackground(new java.awt.Color(255, 255, 102));
        txtFechModEliAuto.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechModEliAuto.setEnabled(false);

        lblFechModifica.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblFechModifica.setText("FECHA MODIFICA.");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblFechUltRevaluo)
                            .addComponent(FechUltCredito)
                            .addComponent(lblFechExtincion)
                            .addComponent(lblModelo)
                            .addComponent(lblTipoGarantia)
                            .addComponent(lblNumRegPrenda))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtTpogtiaEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtModeloEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtFechExtEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtFechUltRevEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtFechUltCredEliAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                            .addComponent(txtNumRegPrendaEliAuto))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                        .addComponent(lblFechModifica)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtFechModEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTipoGarantia)
                    .addComponent(txtTpogtiaEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblModelo)
                    .addComponent(txtModeloEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNumRegPrenda)
                    .addComponent(txtNumRegPrendaEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFechExtincion)
                    .addComponent(txtFechExtEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFechUltRevaluo)
                    .addComponent(txtFechUltRevEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(FechUltCredito)
                    .addComponent(txtFechUltCredEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtFechModEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFechModifica))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblArchivo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblArchivo.setText("VER");

        btnExaminarEliWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminarEliWarra.setText("VER ARCHIVO");
        btnExaminarEliWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarEliWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(lblArchivo)
                .addGap(18, 18, 18)
                .addComponent(btnExaminarEliWarra)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArchivo)
                    .addComponent(btnExaminarEliWarra))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnlCreacionGaraAutoLayout = new javax.swing.GroupLayout(pnlCreacionGaraAuto);
        pnlCreacionGaraAuto.setLayout(pnlCreacionGaraAutoLayout);
        pnlCreacionGaraAutoLayout.setHorizontalGroup(
            pnlCreacionGaraAutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraAutoLayout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 113, Short.MAX_VALUE)
                .addGroup(pnlCreacionGaraAutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        pnlCreacionGaraAutoLayout.setVerticalGroup(
            pnlCreacionGaraAutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraAutoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(pnlCreacionGaraAutoLayout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        btnMenuPricEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPricEliAuto.setText("MENÚ PRINCIPAL >>");
        btnMenuPricEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPricEliAutoActionPerformed(evt);
            }
        });

        btnEliminarGtiaEliAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnEliminarGtiaEliAuto.setText("ELIMINAR");
        btnEliminarGtiaEliAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarGtiaEliAutoActionPerformed(evt);
            }
        });

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ESTADO ACTUAL", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtEstadoActualAutomotriz.setEditable(false);

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(txtEstadoActualAutomotriz, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(txtEstadoActualAutomotriz, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jPanelCambiandoEstadoActual.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CAMBIANDO ESTADO ACTUAL", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtCambiandoEstadoActual.setEditable(false);
        txtCambiandoEstadoActual.setText("Eliminando");

        javax.swing.GroupLayout jPanelCambiandoEstadoActualLayout = new javax.swing.GroupLayout(jPanelCambiandoEstadoActual);
        jPanelCambiandoEstadoActual.setLayout(jPanelCambiandoEstadoActualLayout);
        jPanelCambiandoEstadoActualLayout.setHorizontalGroup(
            jPanelCambiandoEstadoActualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCambiandoEstadoActualLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(txtCambiandoEstadoActual, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );
        jPanelCambiandoEstadoActualLayout.setVerticalGroup(
            jPanelCambiandoEstadoActualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(txtCambiandoEstadoActual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pnlCreacionGaraAuto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35)
                        .addComponent(jPanelCambiandoEstadoActual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(351, 351, 351)
                        .addComponent(btnEliminarGtiaEliAuto)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuPricEliAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelCambiandoEstadoActual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlCreacionGaraAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnMenuPricEliAuto)
                    .addComponent(btnEliminarGtiaEliAuto))
                .addContainerGap(28, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("ELIMINACIÓN GARANTÍA AUTOMOTRIZ", jPanel4);

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaPatenteImprimir.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tbSalidaPatenteImprimir.setEnabled(false);
        jScrollPane1.setViewportView(tbSalidaPatenteImprimir);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE PATENTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarPatente.setText("BUSCAR");
        btnBuscarPatente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarPatenteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(29, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(btnBuscarPatente, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)
                    .addComponent(txtBuscarPatenteImprimir))
                .addGap(27, 27, 27))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtBuscarPatenteImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarPatente))
        );

        btnImprimirPatente.setText("IMPRIMIR");
        btnImprimirPatente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirPatenteActionPerformed(evt);
            }
        });

        btnMenuPrincipalAutomotriz.setText("MENÚ PRINCIPAL");
        btnMenuPrincipalAutomotriz.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalAutomotrizActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addGap(0, 280, Short.MAX_VALUE)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(296, 296, 296))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                .addComponent(btnImprimirPatente, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(169, 169, 169)
                                .addComponent(btnMenuPrincipalAutomotriz, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(25, 25, 25))))))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnImprimirPatente)
                    .addComponent(btnMenuPrincipalAutomotriz))
                .addContainerGap())
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel6);

        jLabel1.setText("MENÚ PRINCIPAL\\ELIMINACIÓN GARANTÍA AUTOMOTRIZ");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(lblLogo)
                        .addGap(114, 114, 114)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblIngresoGaraAuto)
                            .addComponent(jLabel1)))
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 800, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblIngresoGaraAuto)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel1))
                    .addComponent(lblLogo))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 497, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        setSize(new java.awt.Dimension(816, 638));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnExaminarEliWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarEliWarraActionPerformed
        String archivo = garantia.getAdjuntar_auto();
           if(!archivo.equals("")){  
         File file = new File(archivo);
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            javax.swing.JOptionPane.showMessageDialog(this, "Problema al abrir archivo");
        }
           }else{
           javax.swing.JOptionPane.showMessageDialog(this, "No tiene archivo adjunto");
           } 
    }//GEN-LAST:event_btnExaminarEliWarraActionPerformed

    private void txtMenuPEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtMenuPEliAutoActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        EliminacionGarantiaAutomotriz.this.dispose();
    }//GEN-LAST:event_txtMenuPEliAutoActionPerformed

    private void btnFolioEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFolioEliAutoActionPerformed
         try
         {
             garantia = reg.buscarPorFolioAuto(Integer.parseInt(this.txtFolioEliAuto.getText().trim()));
             if (garantia.getEstado_auto().equals("Eliminada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                    this.btnEliminarGtiaEliAuto.setVisible(false);
                    limpiar();
                }
             else
             {
             if (!this.txtFolioEliAuto.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioEliAuto.setText("");
        }
       else{
        if(this.txtFolioEliAuto.getText().length() > 0)
         {
        garantia = reg.buscarPorFolioAuto(Integer.parseInt(this.txtFolioEliAuto.getText().trim()));
        if(garantia.getFolio_garantia_auto() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(null, "Garantia NO EXISTE");
            txtFolioEliAuto.setText("");
            this.txtPatenteEliAuto.setText("");
            this.btnEliminarGtiaEliAuto.setVisible(false);
            limpiar();
        }
        else
        {
            if(garantia.getEstado_auto().equals("Ingresada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Ingresada");
                    this.btnEliminarGtiaEliAuto.setVisible(true);
                }
                else if(garantia.getEstado_auto().equals("Aprobada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Aprobada.NO PUEDE SER ELIMINADA");
                    this.btnEliminarGtiaEliAuto.setVisible(false);
                    this.jPanelCambiandoEstadoActual.setVisible(false);
                }
                else if(garantia.getEstado_auto().equals("Rechazada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Rechazada");
                    this.btnEliminarGtiaEliAuto.setVisible(true);
                }
                else if(garantia.getEstado_auto().equals("Modificada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Modificada");
                    this.btnEliminarGtiaEliAuto.setVisible(true);
                }
                
            
             txtRutEliAuto.setText(garantia.getRut_gara_auto());
            txtApellMatEliAuto.setText(garantia.getApell_materno_auto());
            txtApellPatEliAuto.setText(garantia.getApell_paterno_auto());
            txtNombreEliAuto.setText(garantia.getNombre_auto());
            txtDescripcionEliAuto.setText(garantia.getComent_auto());
            txtSucursalEliAuto.setText(garantia.getSucursal_auto());
            txtDireccionEliAuto.setText(garantia.getDireccion_auto());
            txtMarcaEliAuto.setText(garantia.getMarca_auto());
            txtPatenteElimAuto.setText(garantia.getPatente_auto());
            txtNumChasisEliAuto.setText(garantia.getNum_chasis_auto());
            txtFechCreaEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_crea_auto()));
            txtFechUltDebEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_ult_debito_auto()));
            txtMonedaEliAuto.setText(garantia.getMoneda_auto());
            txtAnoEliAuto.setText(String.valueOf(garantia.getAño_auto()));
            txtNumMotorEliAuto.setText(String.valueOf(garantia.getNum_motor_auto()));
            txtFechUltTasEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFecha_ult_tasa_auto()));
            try
            {
            txtFechModEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFecha_modifi_auto()));
            }catch(Exception e)
            {
                e.getMessage();
            }
            txtTpogtiaEliAuto.setText(garantia.getTipo_garantia_auto());
            txtModeloEliAuto.setText(garantia.getModelo_auto());
            txtNumRegPrendaEliAuto.setText(String.valueOf(garantia.getNum_reg_prenda_auto()));
            txtFechExtEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_extincion_auto().getTime()));
            txtFechUltRevEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_ult_reval_auto()));
            txtFechUltCredEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_ult_reval_credito_auto()));
            this.txtEstadoActualAutomotriz.setText(garantia.getEstado_auto());
            this.txtPatenteEliAuto.setText("");
        }
         }else
         {
             this.btnEliminarGtiaEliAuto.setVisible(false);
             this.txtPatenteEliAuto.setText("");
             limpiar();
             javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Número de Folio");
         }
         
         }
         }}
         catch(Exception e)
         {
             e.getMessage();
         }
    }//GEN-LAST:event_btnFolioEliAutoActionPerformed

    private void btnPatenteEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPatenteEliAutoActionPerformed
        try
        {
            garantia = reg.buscarPorPatente(this.txtPatenteEliAuto.getText());
            if (garantia.getEstado_auto().equals("Eliminada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");
                    this.btnEliminarGtiaEliAuto.setVisible(false);
                    limpiar();
                }else
            {
        if(this.txtPatenteEliAuto.getText().length() > 0)
        {
        garantia = reg.buscarPorPatente(this.txtPatenteEliAuto.getText());
        if(garantia.getFolio_garantia_auto() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(null, "Garantia NO EXISTE");
            txtPatenteEliAuto.setText("");
            this.txtFolioEliAuto.setText("");
            this.btnEliminarGtiaEliAuto.setVisible(false);
            limpiar();
        }
        else
        {
            if(garantia.getEstado_auto().equals("Ingresada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Ingresada");
                    this.btnEliminarGtiaEliAuto.setVisible(true);
                }
                else if(garantia.getEstado_auto().equals("Aprobada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Aprobada.NO PUEDE SER ELIMINADA");
                    this.btnEliminarGtiaEliAuto.setVisible(false);
                    this.jPanelCambiandoEstadoActual.setVisible(false);
                }
                else if(garantia.getEstado_auto().equals("Rechazada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Rechazada");
                    this.btnEliminarGtiaEliAuto.setVisible(true);
                }
                else if(garantia.getEstado_auto().equals("Modificada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Modificada");
                    this.btnEliminarGtiaEliAuto.setVisible(true);
                }
               
            
            txtRutEliAuto.setText(garantia.getRut_gara_auto());
            txtApellMatEliAuto.setText(garantia.getApell_materno_auto());
            txtApellPatEliAuto.setText(garantia.getApell_paterno_auto());
            txtNombreEliAuto.setText(garantia.getNombre_auto());
            txtDescripcionEliAuto.setText(garantia.getComent_auto());
            txtSucursalEliAuto.setText(garantia.getSucursal_auto());
            txtDireccionEliAuto.setText(garantia.getDireccion_auto());
            txtMarcaEliAuto.setText(garantia.getMarca_auto());
            txtPatenteElimAuto.setText(garantia.getPatente_auto());
            txtNumChasisEliAuto.setText(garantia.getNum_chasis_auto());
            txtFechCreaEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_crea_auto()));
            txtFechUltDebEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_ult_debito_auto()));
            txtMonedaEliAuto.setText(garantia.getMoneda_auto());
            txtAnoEliAuto.setText(String.valueOf(garantia.getAño_auto()));
            txtNumMotorEliAuto.setText(String.valueOf(garantia.getNum_motor_auto()));
            txtFechUltTasEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFecha_ult_tasa_auto()));
            try
            {
            txtFechModEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFecha_modifi_auto()));
            }catch(Exception e)
            {
                e.getMessage();
            }
            txtTpogtiaEliAuto.setText(garantia.getTipo_garantia_auto());
            txtModeloEliAuto.setText(garantia.getModelo_auto());
            txtNumRegPrendaEliAuto.setText(String.valueOf(garantia.getNum_reg_prenda_auto()));
            txtFechExtEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_extincion_auto().getTime()));
            txtFechUltRevEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_ult_reval_auto()));
            txtFechUltCredEliAuto.setText(new SimpleDateFormat("dd-MM-yyyy").format(garantia.getFech_ult_reval_credito_auto()));
            this.txtEstadoActualAutomotriz.setText(garantia.getEstado_auto());
            this.txtFolioEliAuto.setText("");
        }
        }
        else
        {
         this.btnEliminarGtiaEliAuto.setVisible(false);
         this.txtFolioEliAuto.setText("");
         limpiar();
         javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Patente");

        }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnPatenteEliAutoActionPerformed

    private void btnEliminarGtiaEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarGtiaEliAutoActionPerformed
        //Mensaje Confirmacion
        int respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de eliminar esta garantia ?", "Eliminacion", JOptionPane.OK_CANCEL_OPTION);
        //Si acepta
        if(respuesta == 0)
        {
            garantia = new garantiaAutomotrizDTO();
            garantia.setPatente_auto(this.txtPatenteElimAuto.getText());
            String cambio = txtCambiandoEstadoActual.getText();
            String elim = cambio.replaceFirst(cambio, "Eliminada");
            garantia.setEstado_auto(elim);
            reg.cambiarEstadoEliminarGarantiaAutoPorPatente(garantia, user);
            javax.swing.JOptionPane.showMessageDialog(null, "Garantia Eliminada");
            MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
            venMenuPrincipal.setVisible(true);
            EliminacionGarantiaAutomotriz.this.dispose();
        }
        else
        {
            
        }
    }//GEN-LAST:event_btnEliminarGtiaEliAutoActionPerformed

    private void chkFolioEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkFolioEliAutoActionPerformed
        if (chkFolioEliAuto.isSelected()) {
            pnlBuscarFolio.setVisible(true);
            pnlBuscarPatente.setVisible(false);
        }
        else
        {
            pnlBuscarFolio.setVisible(false);
        }
    }//GEN-LAST:event_chkFolioEliAutoActionPerformed

    private void chkPatenteEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkPatenteEliAutoActionPerformed
        if (chkPatenteEliAuto.isSelected()) {
            pnlBuscarPatente.setVisible(true);
            pnlBuscarFolio.setVisible(false);
        }
        else
        {
            pnlBuscarPatente.setVisible(false);
        }
    }//GEN-LAST:event_chkPatenteEliAutoActionPerformed

    private void btnMenuPricEliAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPricEliAutoActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        EliminacionGarantiaAutomotriz.this.dispose();
    }//GEN-LAST:event_btnMenuPricEliAutoActionPerformed

    private void btnBuscarPatenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarPatenteActionPerformed
         try
         {
             garantia = reg.buscarPorPatente(this.txtBuscarPatenteImprimir.getText());
            if (garantia.getEstado_auto().equals("Eliminada"))
                {
                    javax.swing.JOptionPane.showMessageDialog(this, "Estado Garantía Eliminada");

             String fechaEliminacion = String.valueOf(Fechas.FechaSistema());
             ArrayList<garantiaAutomotrizDTO> salida = reg.ListarPorPatenteAuto(this.txtBuscarPatenteImprimir.getText().trim());
             if(salida.isEmpty())
             {
                
                 this.txtBuscarPatenteImprimir.setText(null);
                 DefaultTableModel model = (DefaultTableModel)this.tbSalidaPatenteImprimir.getModel();
                 model.setNumRows(0);
                 javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
             }else
             {
                 
                 DefaultTableModel model = (DefaultTableModel)this.tbSalidaPatenteImprimir.getModel();
                 model.setColumnCount(0);
                 
                 if(model.getColumnCount() < 1)
                {
                    
                    Object[] arr1 ={"Rut: ","Nombre: ", "Calle: ", "Garantía: ", "Número identificatorio Automotriz: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal:  ",
                        "Dirección (Crédito): ","Marca: ","Número de Chasis: ","Fecha ultimo debito",
                        "Moneda: ","Año: ","Número de Motor: ","Fecha última Tasación: ","Tipo garantía: ",
                        "Modelo: ","Número Regsitro de Prenda: ","Fecha vencimiento: ","Fecha último revaluo: ",
                        "Fecha último crédito: ","Estado de la garantía: ","Fecha Aprobado/Rechazo: ","Fecha de modificación: ",
                        "Fecha de garantía eliminada: ","Usuario: " };
                    model.addColumn("Concepto", arr1);
                    
                    for(garantiaAutomotrizDTO a: salida)
                {
                    if(a.getFecha_modifi_auto() == null)
                    {
                        fec = "";
                    }
                    else
                    {
                        fec = new SimpleDateFormat("dd-MM-yyyy").format(a.getFecha_modifi_auto());
                    }
                    Object[] arr2 ={
                         a.getRut_gara_auto(),
                         a.getNombre_auto() + "  " + a.getApell_paterno_auto() + "  " + a.getApell_materno_auto(),
                         a.getCalle_auto() + "  " + a.getNum_auto(),
                         a.getNombre_garantia_auto(),
                         a.getPatente_auto(),
                         a.getFolio_garantia_auto(),
                         a.getMonto_inicial(),
                         new SimpleDateFormat("dd-MM-yyyy").format(a.getFech_crea_auto()),
                         a.getSucursal_auto(),
                         a.getDireccion_auto(),a.getMarca_auto(),a.getNum_chasis_auto(),new SimpleDateFormat("dd-MM-yyyy").format(a.getFech_ult_debito_auto()),
                         a.getMoneda_auto(),a.getAño_auto(),a.getNum_motor_auto(),new SimpleDateFormat("dd-MM-yyyy").format(a.getFecha_ult_tasa_auto()),
                         a.getTipo_garantia_auto(),a.getModelo_auto(),a.getNum_reg_prenda_auto(),new SimpleDateFormat("dd-MM-yyyy").format(a.getFech_extincion_auto()),
                         new SimpleDateFormat("dd-MM-yyyy").format(a.getFech_ult_reval_auto()),new SimpleDateFormat("dd-MM-yyyy").format(a.getFech_ult_reval_credito_auto()),
                         a.getEstado_auto(),
                         new SimpleDateFormat("dd-MM-yyyy").format(a.getFech_crea_auto()),
                         fec,
                         fechaEliminacion,
                         a.getNombre_usuario()
                    };
                     
                    model.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," ",
                                     " "," "," "," "," "," "," "," "," "," ",
                                     " "," "," "," "," "," "," "," "};
                    model.addColumn("Observaciones",arr3);
                    
                }

             }
         }else
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Solo Imprime los Estados De Garantías Eliminadas");
                this.txtBuscarPatenteImprimir.setText(null);
                 DefaultTableModel model = (DefaultTableModel)this.tbSalidaPatenteImprimir.getModel();
                 model.setNumRows(0);
                 model.setColumnCount(0);
            }}
         catch(Exception e)
         {
             e.getMessage();
         }
    }//GEN-LAST:event_btnBuscarPatenteActionPerformed

    private void btnImprimirPatenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirPatenteActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaPatenteImprimir.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaPatenteImprimir.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaPatenteImprimir.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaPatenteImprimir.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Eliminación Automotriz");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(EliminacionGarantiaAutomotriz.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirPatenteActionPerformed

    private void btnMenuPrincipalAutomotrizActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalAutomotrizActionPerformed
       MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        EliminacionGarantiaAutomotriz.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalAutomotrizActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(EliminacionGarantiaAutomotriz.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(EliminacionGarantiaAutomotriz.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(EliminacionGarantiaAutomotriz.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(EliminacionGarantiaAutomotriz.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new EliminacionGarantiaAutomotriz().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel FechCreacion;
    private javax.swing.JLabel FechUltCredito;
    private javax.swing.JLabel FechUltDebito;
    private javax.swing.JButton btnBuscarPatente;
    private javax.swing.JButton btnEliminarGtiaEliAuto;
    private javax.swing.JButton btnExaminarEliWarra;
    private javax.swing.JButton btnFolioEliAuto;
    private javax.swing.JButton btnImprimirPatente;
    private javax.swing.JButton btnMenuPricEliAuto;
    private javax.swing.JButton btnMenuPrincipalAutomotriz;
    private javax.swing.JButton btnPatenteEliAuto;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JCheckBox chkFolioEliAuto;
    private javax.swing.JCheckBox chkPatenteEliAuto;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPanel jPanelCambiandoEstadoActual;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblArchivo;
    private javax.swing.JLabel lblAño;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDireccion;
    private javax.swing.JLabel lblFechExtincion;
    private javax.swing.JLabel lblFechModifica;
    private javax.swing.JLabel lblFechUltRevaluo;
    private javax.swing.JLabel lblFechUltTasacion;
    private javax.swing.JLabel lblIngresoGaraAuto;
    private javax.swing.JLabel lblLogo;
    private javax.swing.JLabel lblMarca;
    private javax.swing.JLabel lblModelo;
    private javax.swing.JLabel lblMoneda;
    private javax.swing.JLabel lblNumChasis;
    private javax.swing.JLabel lblNumMotor;
    private javax.swing.JLabel lblNumRegPrenda;
    private javax.swing.JLabel lblPatente;
    private javax.swing.JLabel lblSucursal;
    private javax.swing.JLabel lblTipoGarantia;
    private javax.swing.JPanel pnlBuscarFolio;
    private javax.swing.JPanel pnlBuscarPatente;
    private javax.swing.JPanel pnlCreacionGaraAuto;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JTable tbSalidaPatenteImprimir;
    private javax.swing.JTextField txtAnoEliAuto;
    private javax.swing.JTextField txtApellMatEliAuto;
    private javax.swing.JTextField txtApellPatEliAuto;
    private javax.swing.JTextField txtBuscarPatenteImprimir;
    private javax.swing.JTextField txtCambiandoEstadoActual;
    private javax.swing.JTextArea txtDescripcionEliAuto;
    private javax.swing.JTextField txtDireccionEliAuto;
    private javax.swing.JTextField txtEstadoActualAutomotriz;
    private javax.swing.JTextField txtFechCreaEliAuto;
    private javax.swing.JTextField txtFechExtEliAuto;
    private javax.swing.JTextField txtFechModEliAuto;
    private javax.swing.JTextField txtFechUltCredEliAuto;
    private javax.swing.JTextField txtFechUltDebEliAuto;
    private javax.swing.JTextField txtFechUltRevEliAuto;
    private javax.swing.JTextField txtFechUltTasEliAuto;
    private javax.swing.JTextField txtFolioEliAuto;
    private javax.swing.JTextField txtMarcaEliAuto;
    private javax.swing.JButton txtMenuPEliAuto;
    private javax.swing.JTextField txtModeloEliAuto;
    private javax.swing.JTextField txtMonedaEliAuto;
    private javax.swing.JTextField txtNombreEliAuto;
    private javax.swing.JTextField txtNumChasisEliAuto;
    private javax.swing.JTextField txtNumMotorEliAuto;
    private javax.swing.JTextField txtNumRegPrendaEliAuto;
    private javax.swing.JTextField txtPatenteEliAuto;
    private javax.swing.JTextField txtPatenteElimAuto;
    private javax.swing.JTextField txtRutEliAuto;
    private javax.swing.JTextField txtSucursalEliAuto;
    private javax.swing.JTextField txtTpogtiaEliAuto;
    // End of variables declaration//GEN-END:variables

    private void limpiar() {
            txtRutEliAuto.setText(null);
            txtApellMatEliAuto.setText(null);
            txtApellPatEliAuto.setText(null);
            txtNombreEliAuto.setText(null);
            txtDescripcionEliAuto.setText(null);
            txtSucursalEliAuto.setText(null);
            txtDireccionEliAuto.setText(null);
            txtMarcaEliAuto.setText(null);
            txtPatenteElimAuto.setText(null);
            txtNumChasisEliAuto.setText(null);
            txtFechCreaEliAuto.setText(null);
            txtFechUltDebEliAuto.setText(null);
            txtMonedaEliAuto.setText(null);
            txtAnoEliAuto.setText(null);
            txtNumMotorEliAuto.setText(null);
            txtFechUltTasEliAuto.setText(null);
            txtFechModEliAuto.setText(null);
            txtTpogtiaEliAuto.setText(null);
            txtModeloEliAuto.setText(null);
            txtNumRegPrendaEliAuto.setText(null);
            txtFechExtEliAuto.setText(null);
            txtFechUltRevEliAuto.setText(null);
            txtFechUltCredEliAuto.setText(null);
            this.txtEstadoActualAutomotriz.setText(null);

    }
}
